<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 250px;
        }
        p{
            width: 100%;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
        p:hover {
            text-decoration-line: underline;
            color: blue;
            cursor: pointer;
        }
    </style>
</head>

<body>
    <div class="box">

    </div>
</body>

</html>
<script>

    var box = document.querySelector('.box')

    var xhr = new XMLHttpRequest()
    xhr.open('get', "./new.json")
    xhr.onreadystatechange = function () {

        if (xhr.readyState == 4) {

            var obj = JSON.parse(xhr.responseText)
            for (let i = 0; i < obj.new.length; i++) {
                console.log(i);
                var ps = document.createElement('p')
                box.appendChild(ps)
                ps.innerHTML = `${i + 1}、${obj.new[i]}`

            }
        }
    }
    xhr.send()
</script>